#define _CRT_SECURE_NO_WARNINGS
#include"List.h"
TestList1()
{
	LTNode* plist = LTInit();
	LTPushBack(plist, 1);
	LTPushBack(plist, 2);
	LTPushBack(plist, 3);
	LTPushBack(plist, 4);
	LTPrint(plist);

	LTPopBack(plist);
	LTPopBack(plist);
	LTPopBack(plist);
	LTPrint(plist);
	LTDestroy(plist);
	plist = NULL;
}
TestList2()
{
	LTNode* plist = LTInit();
	LTPustFront(plist, 1);
	LTPustFront(plist, 2);
	LTPustFront(plist, 3);
	LTPustFront(plist, 4);
	LTPrint(plist);

	LTPopFront(plist);
	LTPopFront(plist);
	LTPopFront(plist);
	LTPrint(plist);
	LTDestroy(plist);
	plist = NULL;
}
TestList3()
{
	LTNode* plist = LTInit();
	LTPustFront(plist, 1);
	LTPustFront(plist, 2);
	LTPustFront(plist, 3);
	LTPustFront(plist, 4);
	LTPrint(plist);

	LTNode* ret = LTFind(plist, 3);
	LTInsert(ret, 5);
	LTPrint(plist);
	LTErase(ret);
	LTPrint(plist);

}
int main()
{
	TestList3();
	return 0;
}